package com.cdgeekcamp.redas.db.model;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface PositionUrlRepository extends CrudRepository<PositionUrl, Integer> {
    Optional<PositionUrl> findByUrl(String url);
    Iterable<PositionUrl> findAllByState(Integer State);
    Page<PositionUrl> findAll(Pageable pageable);
    Optional<PositionUrl> findByPlatformAndSrcPosId(String platform, String srcPosId);
}
